<?php include_once 'video_header.php';?>
<!--主体内容-->
<div class="main">
	<?php include_once 'video_left.php';?>
	
	
	<div class="right_c">
		<div class="view">
			<div class="title">
				<h1><?php echo $vInfo['videoTitle'];?></h1>
				<div class="info"><span>发布时间：<?php echo $vInfo['addTime'];?></span> <span>阅读：<?php echo $vInfo['hits'];?></span> <span>评论：<?php echo $vInfo['comm'];?></span> 
				<span><a href="index.php?mod=video&code=fav&vid=<?php echo $vInfo['id'];?>">收藏</a> </span></div>
			</div>
			<div class="swf">
			<embed src="<?php echo $vInfo['videoUrl'];?>" allowFullScreen="true" quality="high" width="480" height="400" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash"></embed>
			</div>
			<div class="body">
				<p><?php echo $vInfo['content'];?></p>
			</div>
			

			<div class="vpage">
				<span><a href="index.php?mod=video&code=show&vid=<?php echo $vInfo['id_prev'];?>">上一篇</a> / 
				<a href="index.php?mod=video&code=show&vid=<?php echo $vInfo['id_next'];?>">下一篇</a></span>
				<?php if( $_COOKIE['MEMBER_ID'] == $vInfo['userId']  ){ ?>
				<a href="index.php?mod=video&code=edit&vid=<?php echo $vInfo['id'];?>">编辑</a> | <a href="index.php?mod=video&code=del&vid=<?php echo $vInfo['id'];?>">删除</a>
				<?php } ?>
			</div>
		</div>
		<div class="comment">
			<div class="post">
			  <form method="post" action="index.php?mod=video&code=comm_add&vid=<?php echo $vInfo['id'];?>">
				<div class="text">
					<textarea name="content"></textarea>
				</div>
				<div class="act">
					<a href="###" class="faces"><img src="./templates/app/images/blog_c_m.gif" alt="blog_c_m" width="16" height="16" /></a>
					<button type="submit">保存</button>
				</div>
			  </form>
			</div>
			
			
		<?php foreach( $comm_list as $c ){ ?>
			<div class="comment_item">
				<div class="face">
					<img src="<?php echo $c['face'];?>" alt="face_40" width="40" height="40" />
				</div>
				<div class="msg">
					<a href="index.php?mod=<?php echo $c['username'];?>"><?php echo $c['nickname'];?>：</a>(<?php echo $c['addTime'];?>)<br/>
					<?php echo $c['content']; ?>
				</div>
				<?php if( $_COOKIE['MEMBER_ID'] == $vInfo['userId'] || $_COOKIE['MEMBER_ID'] == $c['userId']  ){ ?>
				<div class="info">
					<span><a href="index.php?mod=video&code=comm_del&id=<?php echo $c['id'];?>&vid=<?php echo $vInfo['id'];?>">删除</a></span></div>
				<?php } ?>
			</div>
		<?php } ?>

		</div>
	</div>
	
<div class="float_both"></div>
</div>
<!--底部-->
<?php include_once 'footer.php';?>
